home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_camlinecross.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  64 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_CamLineB.cog
  4. #
  5. # Swings Camera around to indy's side during a short sayline
  6. #
  7. # [SXC]
  8. #
  9. # 11/23/98 SXC
  10. #
  11. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  12. #
  13. # ========================================================================================
  14.  
  15. symbols
  16.  
  17.     message     startup
  18.     message     taken
  19.  
  20.     thing       player          local
  21.     thing       mirror
  22.  
  23.     flex        xpos=0.2
  24.     flex        ypos=0
  25.     flex        zpos=0.065
  26.  
  27.     vector      swingpos        local
  28.  
  29.     int         croscheck=0     local
  30.  
  31.     sound       indyline0=to05j03.wav local
  32.  
  33. end
  34.  
  35. # ========================================================================================
  36.  
  37. code
  38.  
  39. startup:
  40.     swingpos = VectorSet(xpos, ypos, zpos);
  41.     player = GetLocalPlayerThing();
  42.     return;
  43.  
  44. # ========================================================================================
  45. taken:
  46.     If ((GetSenderRef() == mirror) && (croscheck == 0))
  47.     {
  48.         croscheck = 1;
  49.         StartCutscene(1);
  50.         StopThing(player);
  51.         PlayForceMoveMode(player, 1);
  52.         SetActorFlags(player, 0x200000);
  53.         SetExtCamOffset(swingpos);
  54.         PlayVoice(player, indyline0, 1, 1);
  55.         Sleep(0.75);
  56.         RestoreExtCam();
  57.         ClearActorFlags(player, 0x200000);
  58.         EndCutscene();
  59.     }
  60.  
  61. return;
  62.  
  63. end
  64.